package com.dxy.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dxy.common.pojo.Group;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GroupMapper extends BaseMapper<Group> {

    @Select("select * from t_group where gid in (select group_id from t_user_group where user_id = #{userId})")
    List<Group> findUserGroup(Integer userId);
}
